<div class="btn-group pull-left">
    <div class="filter-{{name}} btn-group filter-list" data-name="{{name}}" store-key="{{store_key}}">
        {{#if text}}
            <button type="button" class="btn btn-primary btn-sm active" data-value="all">
                {{text}} <span class="badge {{name}}-all"></span>
            </button>
            {{#each filters}}
                <button type="button" class="btn btn-primary btn-sm" data-value="{{value}}">
                    {{text}} <span class="badge {{../name}}-{{value}}"></span>
                </button>
            {{/each}}
        {{^}}
            {{#each filters}}
                {{#if_eq @index 0}}
                    <button type="button" class="btn btn-primary btn-sm active" data-value="{{value}}">
                        {{text}} <span class="badge {{../name}}-{{value}}"></span>
                    </button>
                {{^}}
                    <button type="button" class="btn btn-primary btn-sm" data-value="{{value}}">
                        {{text}} <span class="badge {{../name}}-{{value}}"></span>
                    </button>
                {{/if_eq}}
            {{/each}}
        {{/if}}
    </div>
</div>